package com.summer.campussct.mapper;

import com.summer.campussct.pojo.VehiclePublish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.summer.campussct.pojo.dto.CategoryPublishDto;
import com.summer.campussct.pojo.dto.VehicleQueryParams;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车辆发布表 Mapper 接口
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-05-10
 */
public interface VehiclePublishMapper extends BaseMapper<VehiclePublish> {

    List<VehiclePublish> getNewList();

    VehiclePublish getDetails(long id);

    CategoryPublishDto getCategoryPublishDto(Long subCategoryId);

    List<VehiclePublish> listByCondition(VehicleQueryParams vehicleQueryParams);

    int modifyPublishState(@Param("status") int status,@Param("vid") Long vid);
}
